ROOT=C:/MinGW

BIN=$(ROOT)/bin
INCLUDE=$(ROOT)/include
LIB=$(ROOT)/lib

CC=$(BIN)/gcc.exe
LD=$(BIN)/ld.exe
AR=$(BIN)/ar.exe

CCFLAGS=
LDFLAGS=

.c.o:
	$(CC) -c $(CCFLAGS) $<

../libkru.a: dupstr.o kru_fw.o kru_mem.o kru_rpt.o wc_hchk.o
	$(AR) rf libkru.a *.o

dupstr.o: dupstr.c

kru_fw.o: kru_fw.c

kru_mem.o: kru_mem.c

kru_rpt.o: kru_rpt.c

all: libkru.a

clean:
	del *.bak
	del *.o
